package com.jiashihui.schema_lgorithm.spring.aspect.proxy;

import org.springframework.aop.AfterReturningAdvice;

import java.lang.reflect.Method;

/**
 * @author jiashihui
 * @describe: 后置通知的实现类
 * @date 2019/03/25
 */
public class TesAfterRunningAdive implements AfterReturningAdvice {

    @Override
    public void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable {
        System.out.println("执行后置通知--->" + "正在执行的方法名为" + method.getName());
        System.err.println("执行结果为：" + returnValue.toString());
    }
}
